
<?php
if (!empty($items)) { ?>
<div class="contentPadd sub">
    <div class="prods_content">
        <ul id="sub_categories" class="row_sub_categories first last">
                <?php foreach ($items as $item) {
                    ?>
                    <li class="wrapper_prods hover last" style="width:122px;">
                        <div class="border_prods">
                            <div class="pic_padd wrapper_pic_div" style="width:92px;height:92px;">
                                <a class="prods_pic_bg"
                                   onclick="window.location.href='<?php echo $this->createUrl('/site/detail', array('id' => $item->id)) ?>';return false;"
                                   style="width:92px;height:92px;">
                                    <img src="<?php echo Yii::app()->request->baseUrl . $item->avatar ?>"
                                         alt="<?php echo Yii::app()->request->baseUrl . $item->name ?>"
                                         title="<?php echo Yii::app()->request->baseUrl . $item->name ?>" width="92"
                                         height="92"
                                         style="width:92px;height:92px;margin:0px 0px 0px 0px;">
                                </a>
                            </div>
                            <div class="prods_padd">
                                <div class="name name_padd equal-height_sub_categories_name" style="min-height: 32px;">
                                    <div>
                                    <span>
                                        <a href="<?php echo $this->createUrl('/site/detail', array('id' => $item->id)) ?>">
                                            <?php echo $item['name'];?>
                                        </a>
                                    </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </li>
                <?php
                }
            ?>
        </ul>
    </div>
</div>
<?php } else {?>
    <div class="contentPadd txtPage">
        <p>Không tìm thấy sản phẩm nào.</p>
    </div>
<?php }?>